package com.gs.service.roomSet;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gs.dao.RoomSetDao;
import com.gs.pojo.RoomSet;
@Service("roomSetService")
public class RoomSetServiceImpl implements RoomSetService{
	
	@Resource
	private RoomSetDao roomSetDao;

	public int getRoomCount(String roomNumber) {
		return roomSetDao.getRoomCount(roomNumber);
	}

	public List<RoomSet> getRoomList(String roomNumber, Integer currentPage, Integer pageSize) {
		return roomSetDao.getRoomList(roomNumber,currentPage,pageSize);
	}

	public int selectYZ(String roomNumber) {
		return roomSetDao.selectYZ(roomNumber);
	}

	public int insertAll(RoomSet roomSet) {
		return roomSetDao.insertAll(roomSet);
	}

	public RoomSet selectById(Integer id) {
		return roomSetDao.selectById(id);
	}

	public int updateById(RoomSet roomSet) {
		return roomSetDao.updateById(roomSet);
	}

	public int deleteById(Integer id) {
		return roomSetDao.deleteById(id);
	}

	public int updateByIdToRoomState(RoomSet roomSet) {
		return roomSetDao.updateByIdToRoomState(roomSet);
	}

	public List<RoomSet> selectInformation(String roomNumber) {
		return roomSetDao.selectInformation(roomNumber);
	}

	@Override
	public List<RoomSet> selectAll() {
		return roomSetDao.selectAll();
	}

	@Override
	public List<RoomSet> levelSelectInformation(Integer guestRoomLevelID) {
		return roomSetDao.levelSelectInformation(guestRoomLevelID);
	}



}
